@prefix-cls: ~'inbiz-search-engine-wap';

.@{prefix-cls} {
  height: 36px;
  &-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 36px;
  }
  & .adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-input input {
    font-size: 16px;
  }
}
.inbiz-search-engine-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  .dms-search-box {
    margin: 0 15px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
  }
  .dms-search-condition {
    margin-bottom: 12px;
    color: var(--inbiz-color-text);
    font-size: 16px;
  }
  .inbiz-search-document-config {
    display: flex;
    margin-bottom: 12px;
    .adm-space-item > div {
      padding: 4px 19px;
      color: var(--inbiz-color-text);
      font-size: 14px;
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 14px;
      &.adm-selector-item-multiple-active {
        color: var(--inbiz-color-primary);
        border-color: var(--inbiz-color-primary);
      }
    }
  }
  .inbiz-search-document-config-radio {
    margin-bottom: 12px;
    .adm-radio-content {
      width: 100px;
      color: var(--inbiz-color-text);
      font-size: 14px;
    }
    .adm-radio-checked {
      .adm-radio-icon {
        background-color: var(--inbiz-color-primary);
        border-color: var(--inbiz-color-primary);
      }
    }
  }
  .adm-search-bar-input-box {
    padding-left: 20px;
    input {
      font-size: 16px;
    }
  }
  .inbiz-search-all-btn {
    display: inline-block;
    height: 20px;
    color: var(--inbiz-color-primary);
    font-size: 16px;
    line-height: 20px;
  }
  .search-icon-cut-line {
    width: 2px;
    height: 20px;
    margin: 0 10px 0 12px;
    vertical-align: sub;
  }
  .advanced-entry {
    margin-top: 100px;
    color: var(--ant-primary-color);
  }
}

.inbiz-search-engine-wap-region {
  margin-bottom: 30px;
  padding: 0 15px;
  color: #333;

  .inbiz-region-header {
    display: flex;
    justify-content: space-between;
    height: 22px;
    margin-bottom: 12px;
    color: var(--inbiz-color-text);
    font-size: 16px;
    line-height: 22px;

    .inbiz-region-del-icon {
      color: #999;
      font-size: 16px;
    }

    .inbiz-region-header-right {
      font-size: 14px;

      .inbiz-region-done {
        color: var(--inbiz-color-primary);
      }
    }
  }

  .inbiz-region-content {
    min-height: 40px;
    .adm-tag {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      height: 28px;
      margin-right: 12px;
      margin-bottom: 12px;
      padding: 0 14px;
      color: var(--inbiz-color-text);
      font-size: 14px;
      line-height: 28px;

      --background-color: #f5f5f5 !important;
      --border-radius: 14px;
      --text-color: #333 !important;
      --border-color: none !important;
      .tagContent {
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
  }
}
.searchEngine-popup {
  height: 42vh;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  .inbiz-popop-list {
    .adm-list-item {
      padding-left: 15px;
    }
    .adm-list-item-content {
      padding-right: 39px;
      font-weight: bold;
    }
    .inbiz-popop-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .inbiz-popop-item-selected {
      color: var(--ant-primary-color);
      .searchEngine-radio-icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 1px solid var(--ant-primary-color);
        border-radius: 50%;  
        position: relative;
        &::after {
          content: '';
          position: absolute;
          width: 6px;
          height: 6px;
          background-color: var(--ant-primary-color);
          border-radius: 50%;  
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }  
      }
    }
  }
}

.inbiz-region-cut-line {
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 4px;
  background-color: #ccc;
}

.custom-search-bar.adm-search-bar {
  width: 100%;
  height: 36px !important;
  --border-radius: 16px;
  .adm-search-bar-input-box-icon {
    margin-right: 6px;
  }
}

.content-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  padding: 0 15px;
  .content-search-btn {
    display: inline-block;
    width: 40px;
    margin-left: 15px;
    color: var(--inbiz-color-primary);
    font-size: 16px;
  }
}

.inbiz-popop-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-bottom: 12px;
  .inbiz-popop-header-title {
    color: #333;
    font-weight: bold;
    font-size: 18px;
  }
  .inbiz-popop-header-close {
    position: absolute;
    right: 20px;
    color: #9b9b9b;
    font-size: 20px;
  }
}

.searchEngine-indexRangePopover {
  transform: translateX(10px);
  .adm-popover-menu-item-text {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}